<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
   /* function test() {
        alert(f1); // function
        f1(); // "called"
        function f1() {
            alert('called');
        }
    }
    test();*/
    /*var a = 1;
    function fn() {
        if (!a) {
            var a = 2;
        }
        alert(a); // 2
    }
    fn();*/

   /*var a = 1;
   function fn() {
       a = 2;
       return;
       function a() {}
   }
   fn();
  alert(a); // 1*/
  alert(Math.floor(-0.5));
</script>
</body>
</html>